//
//import br.com.tminterface.utils.RegexUtils;
//import java.io.BufferedReader;
//import java.io.BufferedWriter;
//import java.io.FileNotFoundException;
//import java.io.FileReader;
//import java.io.FileWriter;
//import java.io.IOException;
//import java.util.regex.Matcher;
//import java.util.regex.Pattern;
//
///*
// * To change this template, choose Tools | Templates
// * and open the template in the editor.
// */
//
///**
// *
// * @author eros
// */
//public class TestRegex {
//
// public static String getStringFromFile(String filename){
//
//        BufferedReader br = null;
//        StringBuilder sb = new StringBuilder();
//        try{
//            br = new BufferedReader(new FileReader(filename));
//            try{
//                String s;
//                while((s = br.readLine()) != null){
//                    //System.out.println(s);
//                    sb.append(s+"\n");
//                    //sb.append("\n");
//                }
//            }catch(IOException xcp){
//                System.err.println(xcp);
//            }finally{
//                br.close();
//            }
//        }catch(IOException xcp){
//            xcp.printStackTrace();
//        }
//
//        return sb.toString();
//    }
//
//  public static boolean saveStringToFile(String filename,String stringStream){
//        boolean save = false;
//        BufferedWriter bw = null;
//        try{
//            bw = new BufferedWriter(new FileWriter(filename));
//            try{
//                bw.write(stringStream);
//                save = true;
//            }catch(IOException xcp){
//                System.err.println(xcp);
//            }finally{
//                bw.close();
//            }
//        }catch(IOException xcp){
//            System.err.println(xcp);
//        }
//
//        return save;
//    }
//
//
//
//    public static void main(String... args) throws FileNotFoundException{
//
//
////        String s = getStringFromFile("emails");
////        Pattern pattern = Pattern.compile("\\<((\\s*?.*?)*?)\\>");
////
////
////                StringBuffer sb2 = new StringBuffer();
////		Matcher matcher = pattern.matcher(s);
////
////		while (matcher.find()) {
////
////                        String email = matcher.group();
////
////                        if(email != null && email.length()>2){
////                            email = email.substring(1,email.length()-1);
////                           // System.out.println(email);
////                            sb2.append(email+"\n");
////                        }
////
////		}
////		      System.out.println(sb2.toString());
//                //saveStringToFile("emails_em_ordem.txt", sb2.toString());
//            System.out.println(RegexUtils.getStringFromFileBySeparator("emails", "<",">"));
//
//
//	}
//
//
//
//
//}
